package com.qimu.saiyou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qimu.saiyou.model.entity.CommentLike;
import com.qimu.saiyou.model.entity.User;

import javax.servlet.http.HttpServletRequest;

/**
* @author: FeiXiang
* @description 针对表【comment_like(评论点赞表)】的数据库操作Service
* @createDate 2024-03-28 16:03:50
*/
public interface CommentLikeService extends IService<CommentLike> {
    /**
     * 点赞
     *
     * @param commentId
     * @param postId
     * @param loginUser
     * @return
     */
    int doCommentLike(long commentId, Long postId, User loginUser, HttpServletRequest request);

    int doCommentLikeInner(long commentId, long userId, Long postId, HttpServletRequest request);
}
